#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
	int arr1[10] = {0};
	int arr2[10] = {0,1,2,3,4,5,6,7,8,9};
	int sz = sizeof(arr1) / sizeof(arr1[0]);
	for (int i = 0; i < sz; i++)
	{
		scanf("%d", &arr1[i]);
	}
	for (int i = 0; i < sz; i++)
	{
		int tem = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = tem;
	}
	for (int i = 0; i < sz; i++)
	{
		printf("%d", arr1[i]);
	}
	printf("\n");
	for (int i = 0; i < sz; i++)
	{
		printf("%d", arr2[i]);
	}
	return 0;
}